home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 33
/
Volume 33 - JOGO DISK .iso
/
Games
/
protect_the_fire.swf
/
scripts
/
DefineSprite_230
/
frame_19
/
DoAction.as
Wrap
Text File
|
2007-01-15
|
1KB
|
37 lines
if(_name eq "player")
{
setProperty("../nut", _rotation, _rotation);
ratio = getProperty("../pline", _currentframe) / getProperty("../pline", _totalframes);
setProperty("../nut", _X, _X - getProperty("../cline", _width));
if("0" < _rotation)
{
setProperty("../nut", _Y, _Y - getProperty("../cline", _height));
}
else
{
setProperty("../nut", _Y, _Y + getProperty("../cline", _height));
}
tellTarget("../nutcentral")
{
gotoAndPlay(2);
}
}
else
{
setProperty("../../nut2", _rotation, getProperty("../", _rotation) + "180");
setProperty("../../cline", _rotation, getProperty("../", _rotation));
setProperty("../../nut2", _X, getProperty("../", _X) + getProperty("../../cline", _width) * "1");
if(getProperty("../", _rotation) < "0")
{
setProperty("../../nut2", _Y, getProperty("../", _Y) - getProperty("../../cline", _height) * "1");
}
else
{
setProperty("../../nut2", _Y, getProperty("../", _Y) + getProperty("../../cline", _height) * "1");
}
tellTarget("../../compnutcentral")
{
gotoAndPlay(2);
}
}